<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'addgroup.jsp' starting page</title>
  </head>
  <body>
  	<h2 align="center">添加分组</h2>
    <form action="${pageContext.request.contextPath }/servlet/AddContactGroupServlet" method="post" >
    <table align="center" >
    	<tr>
    		<td>分组名称：</td>
    		<td><input type="text" name="groupname"/></td>
    	</tr>
    	
    	<tr>
    		<td>所属分组：</td>
    		<td>
    			<select name="groupid">
    			<c:forEach var="g" items="${list }">
    				<option value="${g.groupid }">${g.groupname }</option>
    			</c:forEach>
    			</select>
    		</td>
    	</tr>
    	
    	<tr>
    		<td>备注：</td>
    		<td><input type="text" name="groupmemo"/></td>
    	</tr>
    	
    	<tr>
    		<td>
    			<input type="reset" name="reset" value="重置"/>
    		</td>
    		<td>
    			<input type="submit" name="submit" value="添加"/>
    		</td>
    	</tr>
    </table>
    </form>
  </body>
</html>
